package org.nf.web.servlet;

import jakarta.servlet.ServletException;

import java.io.IOException;

/**
 * @author wangl
 * @date 2024/5/23
 */
public interface HttpRequestHandler {

    /**
     * 请求处理
     * @param api 请求和响应对象
     * @throws ServletException Servlet异常
     * @throws IOException IO异常
     */
    void handleRequest(ServletApi api) throws ServletException, IOException;
}